import Vue from 'vue'
import Router from 'vue-router'
import home from '../components/home/home'
import aboutUs from '../components/aboutUs/aboutUs'
import clinicDistribution from '../components/clinicDistribution/clinicDistribution'
import departmentIntroduction from '../components/departmentIntroduction/departmentIntroduction'
import healthInformation from '../components/healthInformation/healthInformation'
import login from '../components/login/login'
import medicalService from '../components/medicalService/medicalService'
import membershipService from '../components/membershipService/membershipService'
import register from '../components/register/register'
import forgetPassword from '../components/forgetPassword/forgetPassword'
import technicalTeam from '../components/medicalService/technicalTeam'
import chronicManagement from '../components/medicalService/chronicManagement'
import crossMedical from '../components/medicalService/crossMedical'
import familyDoctor from '../components/medicalService/familyDoctor'
import nedicalResearch from '../components/medicalService/nedicalResearch'
import experts from '../components/medicalService/experts'
Vue.use(Router)


export default new Router({
  mode:'history',
  routes: [
   {
     path:"/",
     name:"home",
     component:home
   },
   {
    path:"/aboutUs",
    name:"aboutUs",
    component:aboutUs
   },
   {
    path:"/clinicDistribution",
    name:"clinicDistribution",
    component:clinicDistribution
   },
   {
    path:"/departmentIntroduction",
    name:"cdepartmentIntroduction",
    component:departmentIntroduction
   },
   {
    path:"/healthInformation",
    name:"healthInformation",
    component:healthInformation
   },
   {
    path:"/login",
    name:"login",
    component:login,
   },
   {
    path:"/medicalService/technicalTeam",
    name:"medicalService",
    component:medicalService,
    children:[
      {
        path:"/medicalService/technicalTeam",
        name:"technicalTeam",
        component:technicalTeam,
      },
      {
        path:"/medicalService/crossMedical",
        name:"crossMedical",
        component:crossMedical,
      },
      {
        path:"/medicalService/experts",
        name:"experts",
        component:experts
      },
      {
        path:"/medicalService/familyDoctor",
        name:"familyDoctor",
        component:familyDoctor,
      },
      {
        path:"/medicalService/chronicManagement",
        name:"chronicManagement",
        component:chronicManagement,
      },
      {
        path:"/medicalService/nedicalResearch",
        name:"nedicalResearch",
        component:nedicalResearch,
      },
    ]
   },
   {
    path:"/membershipService",
    name:"membershipService",
    component:membershipService
   },
   {
    path:"/register",
    name:"register",
    component:register
   },
   {
    path:"/forgetPassword",
    name:"forgetPassword",
    component:forgetPassword
   },
  ],
})
